package com.qiyu.model.response.backend;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiyu.entity.common.DescJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 度假区产品 管理 响应体
 *
 * @Author: tiancheng
 * @date: 2020/7/31 17:41
 */
@Data
@ApiModel("度假区产品 管理 响应体")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AdminResortProductResponse {
    
    @ApiModelProperty(value = "产品id")
    private Long id;
    
    @ApiModelProperty(value = "产品标题")
    private String title;
    
    @ApiModelProperty(value = "略缩图地址")
    private String thumbnail;
    
    @ApiModelProperty(value = "是否展示详情（可点击）, 1展示 0不展示")
    private Boolean displayContent;
    
    @ApiModelProperty(value = "地理位置")
    private String location;
    
    @ApiModelProperty(value = "经度")
    private Double longitude;
    
    @ApiModelProperty(value = "纬度")
    private Double latitude;
    
    @ApiModelProperty(value = "排序")
    private Integer sort;
    
    @ApiModelProperty(value = "所属二级菜单id")
    private Long secondMenuId;
    
    @ApiModelProperty(value = "所属二级菜单名称")
    private String secondMenuName;
    
    @ApiModelProperty(value = "所属类型id")
    private Long subTypeId;
    
    @ApiModelProperty(value = "内容")
    private String content;
    
    @ApiModelProperty(value = "产品标题内容列表")
    private List<DescJson> descJsonList;
    
    @ApiModelProperty(value = "是否上线，1上线 0下线")
    private Boolean online;
    
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;
}
